* Support --json and --json-error-messages in more commands
(addunused, dead, describe, dropunused, expire, fix, importfeed, init,
log, merge, migrate, reinit, reinject, rekey, renameremote, rmurl,
- semitrust, setpresentkey, trust, unannex, undo, untrust, unused)
+ semitrust, setpresentkey, trust, unannex, undo, untrust, unused,
+ upgrade)
* log: When --raw-date is used, display only seconds from the epoch, as
documented, omitting a trailing "s" that was included in the output
before.
repoExists $
-- avoid upgrading repo out from under daemon
noDaemonRunning $
+ withAnnexOptions [jsonOptions] $
command "upgrade" SectionMaintenance "upgrade repository"
paramNothing (seek <$$> optParser)
Only do whatever automatic upgrade can be done, don't necessarily
upgrade to the latest version. This is used internally by git-annex.
+* `--json`
+
+ Enable JSON output. This is intended to be parsed by programs that use
+ git-annex.
+
+* `--json-error-messages`
+
+ Messages that would normally be output to standard error are included in
+ the JSON instead.
+
* Also the [[git-annex-common-options]](1) can be used.
# SEE ALSO